/**
 * <copyright> </copyright>
 * 
 * $Id$
 */
package com.sc.vessel.info.model.breakdown.impl;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.internal.cdo.CDOObjectImpl;

import com.sc.vessel.info.model.breakdown.AttributeIdentify;
import com.sc.vessel.info.model.breakdown.BreakdownPackage;

/**
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Attribute Identify</b></em>'. <!-- end-user-doc
 * -->
 * <p>
 * The following features are implemented:
 * <ul>
 * <li>{@link com.sc.vessel.info.model.breakdown.impl.AttributeIdentifyImpl#getName <em>Name</em>}</li>
 * <li>{@link com.sc.vessel.info.model.breakdown.impl.AttributeIdentifyImpl#getItemId <em>Item Id</em>}</li>
 * </ul>
 * </p>
 * 
 * @generated
 */
public class AttributeIdentifyImpl extends CDOObjectImpl implements AttributeIdentify {

    /**
     * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
     * -->
     * 
     * @see #getName()
     * @generated
     * @ordered
     */
    protected static final String NAME_EDEFAULT = null;

    /**
     * The default value of the '{@link #getItemId() <em>Item Id</em>}' attribute.
     * <!-- begin-user-doc --> <!--
     * end-user-doc -->
     * @see #getItemId()
     * @generated
     * @ordered
     */
    protected static final String ITEM_ID_EDEFAULT = null;

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    protected AttributeIdentifyImpl() {
        super();
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass() {
        return BreakdownPackage.Literals.ATTRIBUTE_IDENTIFY;
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected int eStaticFeatureCount() {
        return 0;
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public String getName() {
        return (String)eDynamicGet(BreakdownPackage.ATTRIBUTE_IDENTIFY__NAME, BreakdownPackage.Literals.ATTRIBUTE_IDENTIFY__NAME, true, true);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setName(String newName) {
        eDynamicSet(BreakdownPackage.ATTRIBUTE_IDENTIFY__NAME, BreakdownPackage.Literals.ATTRIBUTE_IDENTIFY__NAME, newName);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public String getItemId() {
        return (String)eDynamicGet(BreakdownPackage.ATTRIBUTE_IDENTIFY__ITEM_ID, BreakdownPackage.Literals.ATTRIBUTE_IDENTIFY__ITEM_ID, true, true);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public void setItemId(String newItemId) {
        eDynamicSet(BreakdownPackage.ATTRIBUTE_IDENTIFY__ITEM_ID, BreakdownPackage.Literals.ATTRIBUTE_IDENTIFY__ITEM_ID, newItemId);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__NAME:
                return getName();
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__ITEM_ID:
                return getItemId();
        }
        return super.eGet(featureID, resolve, coreType);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__NAME:
                setName((String)newValue);
                return;
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__ITEM_ID:
                setItemId((String)newValue);
                return;
        }
        super.eSet(featureID, newValue);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__NAME:
                setName(NAME_EDEFAULT);
                return;
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__ITEM_ID:
                setItemId(ITEM_ID_EDEFAULT);
                return;
        }
        super.eUnset(featureID);
    }

    /**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__NAME:
                return NAME_EDEFAULT == null ? getName() != null : !NAME_EDEFAULT.equals(getName());
            case BreakdownPackage.ATTRIBUTE_IDENTIFY__ITEM_ID:
                return ITEM_ID_EDEFAULT == null ? getItemId() != null : !ITEM_ID_EDEFAULT.equals(getItemId());
        }
        return super.eIsSet(featureID);
    }

} // AttributeIdentifyImpl
